package com.lwsh.essearch.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class TSku implements Serializable {
    private Long id;

    @ApiModelProperty(value = "sku名称(copy from t_spu.spu_name)")
    private String skuName;

    @ApiModelProperty(value = "sku编码")
    private String skuCode;

    @ApiModelProperty(value = "条形码(从供应商档取第一个条形码)")
    private String barCode;

    @ApiModelProperty(value = "规格图")
    private String picUrl;

    @ApiModelProperty(value = "spu id")
    private Long spuId;

    @ApiModelProperty(value = "商品类型（copy from t_spu.spu_typ）1:普通;2:组合商品;3:加工原料;4:商品辅料;5:物流辅料;6:样品;7:赠品;8:套餐商品")
    private Integer skuType;

    @ApiModelProperty(value = "规格1")
    private String spec1;

    @ApiModelProperty(value = "规格2")
    private String spec2;

    @ApiModelProperty(value = "规格3")
    private String spec3;

    @ApiModelProperty(value = "规格4")
    private String spec4;

    @ApiModelProperty(value = "创建者")
    private Integer creator;

    @ApiModelProperty(value = "修改者")
    private Integer modifier;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    @ApiModelProperty(value = "生命周期状态（1：正常；2：停售；3：季节停售；4：退场；5：永久汰换）")
    private Integer lifeCycle;

    @ApiModelProperty(value = "数据迁移临时暂用")
    private Integer goodsId;

    @ApiModelProperty(value = "有效期开始时间（组合商品）")
    private Date effectiveTime;

    @ApiModelProperty(value = "有效期结束时间（组合商品）")
    private Date expiredTime;

    @ApiModelProperty(value = "首次上架时间")
    private Date firstOnShelfTime;

    @ApiModelProperty(value = "规格名称")
    private String specName;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Integer getSkuType() {
        return skuType;
    }

    public void setSkuType(Integer skuType) {
        this.skuType = skuType;
    }

    public String getSpec1() {
        return spec1;
    }

    public void setSpec1(String spec1) {
        this.spec1 = spec1;
    }

    public String getSpec2() {
        return spec2;
    }

    public void setSpec2(String spec2) {
        this.spec2 = spec2;
    }

    public String getSpec3() {
        return spec3;
    }

    public void setSpec3(String spec3) {
        this.spec3 = spec3;
    }

    public String getSpec4() {
        return spec4;
    }

    public void setSpec4(String spec4) {
        this.spec4 = spec4;
    }

    public Integer getCreator() {
        return creator;
    }

    public void setCreator(Integer creator) {
        this.creator = creator;
    }

    public Integer getModifier() {
        return modifier;
    }

    public void setModifier(Integer modifier) {
        this.modifier = modifier;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Integer getLifeCycle() {
        return lifeCycle;
    }

    public void setLifeCycle(Integer lifeCycle) {
        this.lifeCycle = lifeCycle;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Date getEffectiveTime() {
        return effectiveTime;
    }

    public void setEffectiveTime(Date effectiveTime) {
        this.effectiveTime = effectiveTime;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

    public Date getFirstOnShelfTime() {
        return firstOnShelfTime;
    }

    public void setFirstOnShelfTime(Date firstOnShelfTime) {
        this.firstOnShelfTime = firstOnShelfTime;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", skuName=").append(skuName);
        sb.append(", skuCode=").append(skuCode);
        sb.append(", barCode=").append(barCode);
        sb.append(", picUrl=").append(picUrl);
        sb.append(", spuId=").append(spuId);
        sb.append(", skuType=").append(skuType);
        sb.append(", spec1=").append(spec1);
        sb.append(", spec2=").append(spec2);
        sb.append(", spec3=").append(spec3);
        sb.append(", spec4=").append(spec4);
        sb.append(", creator=").append(creator);
        sb.append(", modifier=").append(modifier);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", lifeCycle=").append(lifeCycle);
        sb.append(", goodsId=").append(goodsId);
        sb.append(", effectiveTime=").append(effectiveTime);
        sb.append(", expiredTime=").append(expiredTime);
        sb.append(", firstOnShelfTime=").append(firstOnShelfTime);
        sb.append(", specName=").append(specName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}